package de.mhus.lib.mandala.attributes;

import de.mhus.lib.mandala.Response;

public class NegativeBooleanAttribute extends BooleanAttribute {

	private BooleanAttribute value;

	public NegativeBooleanAttribute(BooleanAttribute value) {
		this.value = value;
	}

	public String getId() {
		return value.getId();
	}
	
	@Override
	public void renderBooleanExpression(Response out) {
		out.print("!");
		value.renderElementCall(out);
	}

	public boolean needFunctionImplementation() {
		return false;
	}

}
